cargo check
authorNick Cameron <ncameron@mozilla.com>
Wed, 16 Nov 2016 01:46:24 +0000 (14:46 +1300)
committerNick Cameron <ncameron@mozilla.com>
Fri, 9 Dec 2016 19:00:07 +0000 (09:00 -1000)
commit4b82fdc04c897d582b7ff376a9e7a7cf5a79a866
tree9e7332f077781fd03690dce19bbfebc24d7b5afc
parentfec03d31f27855af2b1c0d45a3f39b46e30983fd
cargo check

Adds a new mode - check - which only checks code, rather than generating machine code. It takes into account that proc macros and build scripts will still require generated code.

Implemented by adding a check profile and setting this on each Unit, unless the unit is required to be built (i.e., is a proc macro, build script, or dep of one).
12 files changed:
src/bin/cargo.rs
src/bin/check.rs [new file with mode: 0644]
src/cargo/core/manifest.rs
src/cargo/core/workspace.rs
src/cargo/ops/cargo_clean.rs
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/util/toml.rs
src/etc/_cargo
src/etc/cargo.bashcomp.sh
src/etc/man/cargo-check.1 [new file with mode: 0644]